package com.example.yoho.mvp.model;

import com.example.yoho.mvp.model.entity.AddcarEntity;
import com.example.yoho.mvp.model.entity.BannerEntity;
import com.example.yoho.mvp.model.entity.BrandGoodsEntity;
import com.example.yoho.mvp.model.entity.BrandListEntity;
import com.example.yoho.mvp.model.entity.BrandTabEntity;
import com.example.yoho.mvp.model.entity.CarListEntity;
import com.example.yoho.mvp.model.entity.CommunityBean;
import com.example.yoho.mvp.model.entity.CouponlistEntity;
import com.example.yoho.mvp.model.entity.FootPrintEntity;
import com.example.yoho.mvp.model.entity.HomeGoodsEntity;
import com.example.yoho.mvp.model.entity.LoginEntity;
import com.example.yoho.mvp.model.entity.MenuEntity;
import com.example.yoho.mvp.model.entity.RecommendEntity;
import com.example.yoho.mvp.model.entity.RegisterEntity;
import com.example.yoho.mvp.model.entity.SelgoodsEntity;
import com.example.yoho.mvp.model.entity.ShoesBean;
import com.example.yoho.mvp.model.entity.ShowEntity;
import com.example.yoho.mvp.model.entity.StrlloListEntity;
import com.example.yoho.mvp.model.entity.StrlloSortEntity;
import com.example.yoho.mvp.model.entity.UpgradeEntity;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface AppApi {


    @GET("home_banner.php")
    Observable<BannerEntity>bannerRequest();
    @GET("home_menu.php")
    Observable<MenuEntity>menuRequest();
    @FormUrlEncoded
    @POST("home_goods.php")
    Observable<HomeGoodsEntity>goodsRequest(@Field("request")String request);
    @FormUrlEncoded
    @POST("home_recommend.php")
    Observable<RecommendEntity>recommendRequest(@Field("request")String request);

    //品类侧滑菜单数据
    @FormUrlEncoded
    @POST("category_all.php")
    Observable<BrandTabEntity> brandTabRequest(@Field("request")String request);

    //品类商品接口数据
    @FormUrlEncoded
    @POST("category_goods.php")
    Observable<BrandGoodsEntity> brandGoodsRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("Brand_list.php")
    Observable<BrandListEntity> branListRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("shoes_list.php")
    Observable<ShoesBean> shoesRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("see_category.php")
    Observable<StrlloSortEntity> strlloRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("see_list.php")
    Observable<StrlloListEntity> strlloListRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("show.php")
    Observable<ShowEntity> showRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("community.php")
    Observable<CommunityBean> communityRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("register.php")
    Observable<RegisterEntity> registerRequest(@Field("request")String request);

    @FormUrlEncoded
    @POST("login.php")
    Observable<LoginEntity> loginRequest(@Field("request")String request);



    @FormUrlEncoded
    @POST("upgrade.php")
    Observable<UpgradeEntity> upgradeRequest(@Field("request")String request);

    //尺寸
    @FormUrlEncoded
    @POST("sel_goods_values.php")
    Observable<SelgoodsEntity> sel_goodsRequest(@Field("request")String request);

    //加入购物车
    @FormUrlEncoded
    @POST("add_car.php")
    Observable<AddcarEntity> add_carRequest(@Field("request")String request);



    //购物车列表
    @FormUrlEncoded
    @POST("car_list.php")
    Observable<CarListEntity> carlistRequest(@Field("request")String request);

    //优惠券列表

    @FormUrlEncoded
    @POST("coupon_list.php")
    Observable<CouponlistEntity> couponRequest(@Field("request")String request);


    //足迹

    @FormUrlEncoded
    @POST("footprint.php")
    Observable<FootPrintEntity> footprintRequest(@Field("request")String request);
}
